package oo3;

public class TestJuice {

	public static void main(String[] args) {
		// JuiceMaker m = new JuiceMaker();
		// m.brand = "九阳";
		// m.color = "黄";
		// m.watt = 45;
		// m.show();
		// m.fruit = "梨子";
		// String r1 = m.makeJuice();
		// System.out.println("我喝到了" + r1);
		// m.fruit = "唐僧肉";
		// String r2 = m.makeJuice();
		// System.out.println("我喝到了" + r2);

		JuiceMaker2 m = new JuiceMaker2();
		m.brand = "九阳";
		m.color = "黄";
		m.watt = 45;
		m.show();
		String shuiguo = "苹果";
		String r1 = m.makeJuice(shuiguo);
		System.out.println("我喝到了" + r1);

		String r2 = m.makeJuice("唐僧肉");
		System.out.println("我喝到了" + r2);

		m.makeJuice("桃子");
	}

}
